package oj;

import java.util.Scanner;

public class Day8S {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        System.out.println(a*b/max(a,b));
    }
    public static int max(int a,int b){
        int temp=0;
        if(a<b){
            temp=a;
            a=b;
            b=temp;
        }
      int d=0;
        while (a%b!=0){
            d=a%b;
            a = b;
            b = d;
        }
        return b;
    }
}
